﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="user_favarticles.aspx.cs" Inherits="user_favarticles" Title="Bài yêu thích" %>

<%@ Register Src="~/UserControls/left_user.ascx" TagName="MenuLeft" TagPrefix="uc" %>
<%@ Register Src="~/UserControls/Advertising.ascx" TagName="Adv" TagPrefix="uc" %>
<%@ Register Src="~/UserControls/PagingListing.ascx" TagName="Paging" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentCss" runat="Server">
    <link href="css/listing.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentFooter" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMenu" runat="Server">
    <uc:MenuLeft ID="MenuLeft1" runat="server" GroupId="1" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentMain" runat="Server">
    <div class="listing">
        <h3>
            <img src="images/bai-yeu-thich-hp.gif" alt="thoi trang" width="400" height="40" /></h3>
        <div class="msg" id="InfoText" runat="server" visible=false>Bài viết đã được xóa!</div>
        <!--Listing search-->
        <div class="listing-search">
            <div class="full-archive">
                <label>
                    Theo</label>
                <div class="pulldown">
                    <form name="pulldown" action="" method="post" id="demo1">
                    <select name="select" class="date-archive">
                        <option value="" selected="selected">Thứ tự lưu vào</option>
                        <option value="1">Tên bài</option>
                    </select>
                    </form>
                </div>
                <!--pulldown-->
            </div>
            <!--full-archive-->
            <div class="full-archive">
                <label>
                    Thứ tự</label>
                <div class="pulldown">
                    <form name="pulldown" action="" method="post" id="demo2">
                    <select name="select2" class="date-archive">
                        <option value="" selected="selected">z-a</option>
                        <option value="1">a-z</option>
                    </select>
                    </form>
                </div>
                <!--pulldown-->
            </div>
            <!--full-archive-->
            <div class="gh-button">
                <form name="gh" action="" method="post" id="demo3">
                <input class="btnGo" type="submit" value="SẮP XẾP" name="go" />
                </form>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="listing-content">
            <div class="listing-row">
            <%
                if (arts != null)
                {
                    foreach (a_Article art in arts.ToArray())
                    {
                 %>
                <div class="object fl">
                    <div class="pic">
                        <a href="detail.aspx?aid=<%=art.ID %>&ckid=<%=SessionManager.GetCookie() %>">
                            <img src="hinh-anh-nguoi-mau/<%=art.KTitle.Replace(' ', '-') %>-<%=art.FYear.ToString() %>-l<%=art.ID %>.jpg" alt="thoi trang"
                                width="150" height="150" /></a>
                    </div>
                    <div class="des">
                        <p>
                            <a href="detail.aspx?aid=<%=art.ID %>&ckid=<%=SessionManager.GetCookie() %>"><%=art.UTitle %></a> 
                            <a href="user_favarticles.aspx?a=del&dt=2&fid=<%=art.ID %>&ckid=<%=SessionManager.GetCookie() %>">
                                <img src="images/ico_delete.gif" alt="delete" width="16" height="13" /></a></p>
                    </div>
                </div>
            <%
                }
                    }
                     %>
                <div class="clear">
                </div>
            </div>
        </div>
        <!--//Listing content-->
        <!--Item page-->
        <uc:Paging ID="hplPager" PerPage="18" runat="server" />
        <!--//Item page-->
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentLeft" runat="Server">
    <uc:Adv ID="Adv1" runat="server" />
</asp:Content>
